package com.ler.yrmall.product.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author Leron
 */
@Data
public class CategoryVO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 上级id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentCid;

    /**
     * 分类等级
     */
    private Integer catLevel;

    /**
     * 排序
     */
    private Integer sort;

    private List<CategoryVO> children;

}
